# eric7.WebBrowser.ZoomManager.ZoomValuesModel

Module implementing a model for zoom values management.

### Global Attributes

None

### Classes

ZoomValuesModel | Class implementing a model for zoom values management.

### Functions

None

## ZoomValuesModel

Class implementing a model for zoom values management.

### Derived from

QAbstractTableModel

### Class Attributes

None

### Class Methods

None

### Methods

ZoomValuesModel | Constructor
__zoomValuesChanged | Private slot handling a change of the registered zoom values.
columnCount | Public method to get the number of columns of the model.
data | Public method to get data from the model.
headerData | Public method to get the header data.
removeRows | Public method to remove entries from the model.
rowCount | Public method to get the number of rows of the model.

### Static Methods

None

#### ZoomValuesModel (Constructor)

ZoomValuesModel(manager, parent=None)

Constructor

manager (ZoomManager)
  reference to the zoom values manager
parent (QObject)
  reference to the parent object

#### ZoomValuesModel.__zoomValuesChanged

__zoomValuesChanged()

Private slot handling a change of the registered zoom values.

#### ZoomValuesModel.columnCount

columnCount(parent=None)

Public method to get the number of columns of the model.

parent (QModelIndex)
  parent index (unused)

Return:
  number of columns

Return Type:
  int

#### ZoomValuesModel.data

data(index, role)

Public method to get data from the model.

index (QModelIndex)
  index to get data for
role (int)
  role of the data to retrieve

Return:
  requested data

Return Type:
  Any

#### ZoomValuesModel.headerData

headerData(section, orientation, role=Qt.ItemDataRole.DisplayRole)

Public method to get the header data.

section (int)
  section number
orientation (Qt.Orientation)
  header orientation
role (Qt.ItemDataRole)
  data role

Return:
  header data

Return Type:
  Any

#### ZoomValuesModel.removeRows

removeRows(row, count, parent=None)

Public method to remove entries from the model.

row (int)
  start row
count (int)
  number of rows to remove
parent (QModelIndex)
  parent index

Return:
  flag indicating success

Return Type:
  bool

#### ZoomValuesModel.rowCount

rowCount(parent=None)

Public method to get the number of rows of the model.

parent (QModelIndex)
  parent index

Return:
  number of rows

Return Type:
  int

Up